#ifdef CONFIG_BFLOAT_4
#define YT_SET_USERPARAM_NONINTEGER(X, Y, Z) yt_set_UserParameterFloat(X, Y, Z)
#else
#define YT_SET_USERPARAM_NONINTEGER(X, Y, Z) yt_set_UserParameterDouble(X, Y, Z)
#endif

#ifdef CONFIG_PFLOAT_4
#define YT_SET_USERPARAM_PNONINTEGER(X, Y, Z) yt_set_UserParameterFloat(X, Y, Z)
#else
#define YT_SET_USERPARAM_PNONINTEGER(X, Y, Z) yt_set_UserParameterDouble(X, Y, Z)
#endif

#ifdef SMALL_INTS
#define YT_SET_USERPARAM_INTEGER(X, Y, Z) yt_set_UserParameterInt(X, Y, Z)
#else
#define YT_SET_USERPARAM_INTEGER(X, Y, Z) yt_set_UserParameterLongLong(X, Y, Z)
#endif

YT_SET_USERPARAM_INTEGER("NumberOfGhostZones", 1, &NumberOfGhostZones);
YT_SET_USERPARAM_INTEGER("LoadBalancing", 1, &LoadBalancing);
YT_SET_USERPARAM_INTEGER("LoadBalancingCycleSkip", 1, &LoadBalancingCycleSkip);
YT_SET_USERPARAM_INTEGER("ResetLoadBalancing", 1, &ResetLoadBalancing);
YT_SET_USERPARAM_INTEGER("CoresPerNode", 1, &CoresPerNode);
YT_SET_USERPARAM_INTEGER("PreviousMaxTask", 1, &PreviousMaxTask);
YT_SET_USERPARAM_INTEGER("LoadBalancingMinLevel", 1, &LoadBalancingMinLevel);
YT_SET_USERPARAM_INTEGER("LoadBalancingMaxLevel", 1, &LoadBalancingMaxLevel);
YT_SET_USERPARAM_INTEGER("FileDirectedOutput", 1, &FileDirectedOutput);
YT_SET_USERPARAM_INTEGER("HierarchyFileInputFormat", 1, &HierarchyFileInputFormat);
YT_SET_USERPARAM_INTEGER("HierarchyFileOutputFormat", 1, &HierarchyFileOutputFormat);
YT_SET_USERPARAM_INTEGER("TotalNumberOfGrids", 1, &TotalNumberOfGrids);
YT_SET_USERPARAM_INTEGER("debug", 1, &debug);
YT_SET_USERPARAM_INTEGER("debug1", 1, &debug1);
YT_SET_USERPARAM_INTEGER("debug2", 1, &debug2);
YT_SET_USERPARAM_INTEGER("extract", 1, &extract);
YT_SET_USERPARAM_INTEGER("CheckpointRestart", 1, &CheckpointRestart);
YT_SET_USERPARAM_INTEGER("WriteGhostZones", 1, &WriteGhostZones);
YT_SET_USERPARAM_INTEGER("ReadGhostZones", 1, &ReadGhostZones);
YT_SET_USERPARAM_INTEGER("ProblemType", 1, &ProblemType);
YT_SET_USERPARAM_INTEGER("HydroMethod", 1, &HydroMethod);
YT_SET_USERPARAM_NONINTEGER("huge_number", 1, &huge_number);
YT_SET_USERPARAM_NONINTEGER("tiny_number", 1, &tiny_number);
YT_SET_USERPARAM_NONINTEGER("gamma", 1, &Gamma);
YT_SET_USERPARAM_INTEGER("PressureFree", 1, &PressureFree);
YT_SET_USERPARAM_INTEGER("QuantumPressure", 1, &QuantumPressure);
YT_SET_USERPARAM_NONINTEGER("FDMMass", 1, &FDMMass);
YT_SET_USERPARAM_INTEGER("FDMCollapseAbsorbingBoundary", 1, &FDMCollapseAbsorbingBoundary);
YT_SET_USERPARAM_INTEGER("RefineBy", 1, &RefineBy);
YT_SET_USERPARAM_INTEGER("MaximumRefinementLevel", 1, &MaximumRefinementLevel);
YT_SET_USERPARAM_INTEGER("MaximumGravityRefinementLevel", 1, &MaximumGravityRefinementLevel);
YT_SET_USERPARAM_INTEGER("MaximumParticleRefinementLevel", 1, &MaximumParticleRefinementLevel);
YT_SET_USERPARAM_INTEGER("FastSiblingLocatorEntireDomain", 1, &FastSiblingLocatorEntireDomain);
YT_SET_USERPARAM_INTEGER("CellFlaggingMethod", MAX_FLAGGING_METHODS, CellFlaggingMethod);
YT_SET_USERPARAM_PNONINTEGER("MustRefineRegionLeftEdge", MAX_DIMENSION, MustRefineRegionLeftEdge);
YT_SET_USERPARAM_PNONINTEGER("MustRefineRegionRightEdge", MAX_DIMENSION, MustRefineRegionRightEdge);
YT_SET_USERPARAM_INTEGER("AvoidRefineRegionLevel", MAX_STATIC_REGIONS, AvoidRefineRegionLevel);
YT_SET_USERPARAM_INTEGER("MustRefineRegionMinRefinementLevel", 1, &MustRefineRegionMinRefinementLevel);
YT_SET_USERPARAM_INTEGER("MetallicityRefinementMinLevel", 1, &MetallicityRefinementMinLevel);
YT_SET_USERPARAM_NONINTEGER("MetallicityRefinementMinMetallicity", 1, &MetallicityRefinementMinMetallicity);
YT_SET_USERPARAM_NONINTEGER("MetallicityRefinementMinDensity", 1, &MetallicityRefinementMinDensity);
YT_SET_USERPARAM_NONINTEGER("TimestepSafetyVelocity", 1, &TimestepSafetyVelocity);
YT_SET_USERPARAM_INTEGER("FluxCorrection", 1, &FluxCorrection);
YT_SET_USERPARAM_INTEGER("UseCoolingTimestep", 1, &UseCoolingTimestep);
YT_SET_USERPARAM_NONINTEGER("CoolingTimestepSafetyFactor", 1, &CoolingTimestepSafetyFactor);
YT_SET_USERPARAM_INTEGER("ConservativeInterpolation", 1, &ConservativeInterpolation);
YT_SET_USERPARAM_NONINTEGER("MinimumEfficiency", 1, &MinimumEfficiency);
YT_SET_USERPARAM_INTEGER("SubgridSizeAutoAdjust", 1, &SubgridSizeAutoAdjust);
YT_SET_USERPARAM_INTEGER("OptimalSubgridsPerProcessor", 1, &OptimalSubgridsPerProcessor);
YT_SET_USERPARAM_INTEGER("MinimumSubgridEdge", 1, &MinimumSubgridEdge);
YT_SET_USERPARAM_INTEGER("MaximumSubgridSize", 1, &MaximumSubgridSize);
YT_SET_USERPARAM_NONINTEGER("CriticalGridRatio", 1, &CriticalGridRatio);
YT_SET_USERPARAM_INTEGER("NumberOfBufferZones", 1, &NumberOfBufferZones);
YT_SET_USERPARAM_PNONINTEGER("DomainLeftEdge", MAX_DIMENSION, DomainLeftEdge);
YT_SET_USERPARAM_PNONINTEGER("DomainRightEdge", MAX_DIMENSION, DomainRightEdge);
YT_SET_USERPARAM_NONINTEGER("GridVelocity", MAX_DIMENSION, GridVelocity);
for (i = 0; i < MAX_DIMENSION; i++){
    snprintf(tempname, 255, "DimUnits_%d", i);
    if (!DimUnits[i]) continue;
    yt_set_UserParameterString(tempname, DimUnits[i]);
}
for (i = 0; i < MAX_DIMENSION; i++){
    snprintf(tempname, 255, "DimLabels_%d", i);
    if (!DimLabels[i]) continue;
    yt_set_UserParameterString(tempname, DimLabels[i]);
}
for (i = 0; i < MAX_NUMBER_OF_BARYON_FIELDS; i++){
    snprintf(tempname, 255, "DataLabel_%d", i);
    if (!DataLabel[i]) continue;
    yt_set_UserParameterString(tempname, DataLabel[i]);
}
for (i = 0; i < MAX_NUMBER_OF_BARYON_FIELDS; i++){
    snprintf(tempname, 255, "DataUnits_%d", i);
    if (!DataUnits[i]) continue;
    yt_set_UserParameterString(tempname, DataUnits[i]);
}
YT_SET_USERPARAM_PNONINTEGER("RefineRegionLeftEdge", MAX_DIMENSION, RefineRegionLeftEdge);
YT_SET_USERPARAM_PNONINTEGER("RefineRegionRightEdge", MAX_DIMENSION, RefineRegionRightEdge);
YT_SET_USERPARAM_INTEGER("RefineRegionAutoAdjust", 1, &RefineRegionAutoAdjust);
YT_SET_USERPARAM_INTEGER("MultiRefineRegion", 1, &MultiRefineRegion);
YT_SET_USERPARAM_INTEGER("MultiRefineRegionGeometry", MAX_STATIC_REGIONS, MultiRefineRegionGeometry);
YT_SET_USERPARAM_PNONINTEGER("MultiRefineRegionRadius", MAX_STATIC_REGIONS, MultiRefineRegionRadius);
YT_SET_USERPARAM_PNONINTEGER("MultiRefineRegionWidth", MAX_STATIC_REGIONS, MultiRefineRegionWidth);
YT_SET_USERPARAM_INTEGER("MultiRefineRegionMaximumLevel", MAX_STATIC_REGIONS, MultiRefineRegionMaximumLevel);
YT_SET_USERPARAM_INTEGER("MultiRefineRegionMinimumLevel", MAX_STATIC_REGIONS, MultiRefineRegionMinimumLevel);
YT_SET_USERPARAM_INTEGER("MultiRefineRegionMaximumOuterLevel", 1, &MultiRefineRegionMaximumOuterLevel);
YT_SET_USERPARAM_INTEGER("MultiRefineRegionMinimumOuterLevel", 1, &MultiRefineRegionMinimumOuterLevel);
YT_SET_USERPARAM_PNONINTEGER("MultiRefineRegionStaggeredRefinement", MAX_STATIC_REGIONS, MultiRefineRegionStaggeredRefinement);
YT_SET_USERPARAM_INTEGER("UniformGravity", 1, &UniformGravity);
YT_SET_USERPARAM_INTEGER("UniformGravityDirection", 1, &UniformGravityDirection);
YT_SET_USERPARAM_NONINTEGER("UniformGravityConstant", 1, &UniformGravityConstant);
YT_SET_USERPARAM_INTEGER("PointSourceGravity", 1, &PointSourceGravity);
YT_SET_USERPARAM_PNONINTEGER("PointSourceGravityPosition", MAX_DIMENSION, PointSourceGravityPosition);
YT_SET_USERPARAM_NONINTEGER("PointSourceGravityConstant", 1, &PointSourceGravityConstant);
YT_SET_USERPARAM_NONINTEGER("PointSourceGravityCoreRadius", 1, &PointSourceGravityCoreRadius);
YT_SET_USERPARAM_INTEGER("DiskGravity", 1, &DiskGravity);
YT_SET_USERPARAM_PNONINTEGER("DiskGravityPosition", MAX_DIMENSION, DiskGravityPosition);
YT_SET_USERPARAM_PNONINTEGER("DiskGravityAngularMomentum", MAX_DIMENSION, DiskGravityAngularMomentum);
yt_set_UserParameterDouble("DiskGravityStellarDiskMass", 1, &DiskGravityStellarDiskMass);
yt_set_UserParameterDouble("DiskGravityStellarDiskScaleHeightR", 1, &DiskGravityStellarDiskScaleHeightR);
yt_set_UserParameterDouble("DiskGravityStellarDiskScaleHeightz", 1, &DiskGravityStellarDiskScaleHeightz);
yt_set_UserParameterDouble("DiskGravityStellarBulgeMass", 1, &DiskGravityStellarBulgeMass);
yt_set_UserParameterDouble("DiskGravityStellarBulgeR", 1, &DiskGravityStellarBulgeR);
yt_set_UserParameterDouble("DiskGravityDarkMatterMass", 1, &DiskGravityDarkMatterMass);
yt_set_UserParameterDouble("DiskGravityDarkMatterConcentration", 1, &DiskGravityDarkMatterConcentration);
YT_SET_USERPARAM_INTEGER("SelfGravity", 1, &SelfGravity);
YT_SET_USERPARAM_INTEGER("SelfGravityGasOff", 1, &SelfGravityGasOff);
YT_SET_USERPARAM_INTEGER("AccretionKernal", 1, &AccretionKernal);
YT_SET_USERPARAM_INTEGER("CopyGravPotential", 1, &CopyGravPotential);
YT_SET_USERPARAM_INTEGER("PotentialIterations", 1, &PotentialIterations);
YT_SET_USERPARAM_INTEGER("BaryonSelfGravityApproximation", 1, &BaryonSelfGravityApproximation);
YT_SET_USERPARAM_NONINTEGER("GravitationalConstant", 1, &GravitationalConstant);
YT_SET_USERPARAM_INTEGER("ComputePotential", 1, &ComputePotential);
YT_SET_USERPARAM_INTEGER("WritePotential", 1, &WritePotential);
YT_SET_USERPARAM_INTEGER("ParticleSubgridDepositMode", 1, &ParticleSubgridDepositMode);
YT_SET_USERPARAM_INTEGER("DualEnergyFormalism", 1, &DualEnergyFormalism);
YT_SET_USERPARAM_NONINTEGER("DualEnergyFormalismEta1", 1, &DualEnergyFormalismEta1);
YT_SET_USERPARAM_NONINTEGER("DualEnergyFormalismEta2", 1, &DualEnergyFormalismEta2);
YT_SET_USERPARAM_NONINTEGER("ParticleCourantSafetyNumber", 1, &ParticleCourantSafetyNumber);
YT_SET_USERPARAM_NONINTEGER("RootGridCourantSafetyNumber", 1, &RootGridCourantSafetyNumber);
YT_SET_USERPARAM_INTEGER("RadiativeCooling", 1, &RadiativeCooling);
YT_SET_USERPARAM_INTEGER("RadiativeCoolingModel", 1, &RadiativeCoolingModel);
YT_SET_USERPARAM_INTEGER("use_grackle", 1, &use_grackle);
YT_SET_USERPARAM_INTEGER("GadgetEquilibriumCooling", 1, &GadgetEquilibriumCooling);
YT_SET_USERPARAM_INTEGER("RandomForcing", 1, &RandomForcing);
YT_SET_USERPARAM_PNONINTEGER("RandomForcingEdot", 1, &RandomForcingEdot);
YT_SET_USERPARAM_PNONINTEGER("RandomForcingMachNumber", 1, &RandomForcingMachNumber);
YT_SET_USERPARAM_INTEGER("DrivenFlowAlpha", MAX_DIMENSION, DrivenFlowAlpha);
YT_SET_USERPARAM_INTEGER("DrivenFlowSeed", 1, &DrivenFlowSeed);
YT_SET_USERPARAM_NONINTEGER("DrivenFlowWeight", 1, &DrivenFlowWeight);
YT_SET_USERPARAM_NONINTEGER("DrivenFlowBandWidth", MAX_DIMENSION, DrivenFlowBandWidth);
YT_SET_USERPARAM_NONINTEGER("DrivenFlowAutoCorrl", MAX_DIMENSION, DrivenFlowAutoCorrl);
YT_SET_USERPARAM_NONINTEGER("DrivenFlowVelocity", MAX_DIMENSION, DrivenFlowVelocity);
YT_SET_USERPARAM_NONINTEGER("DrivenFlowDomainLength", MAX_DIMENSION, DrivenFlowDomainLength);
YT_SET_USERPARAM_INTEGER("UseSGSModel", 1, &UseSGSModel);
YT_SET_USERPARAM_INTEGER("SGSFilterStencil", 1, &SGSFilterStencil);
YT_SET_USERPARAM_INTEGER("SGSNeedJacobians", 1, &SGSNeedJacobians);
YT_SET_USERPARAM_INTEGER("SGSNeedMixedFilteredQuantities", 1, &SGSNeedMixedFilteredQuantities);
YT_SET_USERPARAM_NONINTEGER("SGSFilterWidth", 1, &SGSFilterWidth);
YT_SET_USERPARAM_NONINTEGER("SGSFilterWeights", 4, SGSFilterWeights);
YT_SET_USERPARAM_NONINTEGER("SGScoeffERS2M2Star", 1, &SGScoeffERS2M2Star);
YT_SET_USERPARAM_NONINTEGER("SGScoeffEVStarEnS2Star", 1, &SGScoeffEVStarEnS2Star);
YT_SET_USERPARAM_NONINTEGER("SGScoeffEnS2StarTrace", 1, &SGScoeffEnS2StarTrace);
YT_SET_USERPARAM_NONINTEGER("SGScoeffNLemfCompr", 1, &SGScoeffNLemfCompr);
YT_SET_USERPARAM_NONINTEGER("SGScoeffNLu", 1, &SGScoeffNLu);
YT_SET_USERPARAM_NONINTEGER("SGScoeffNLuNormedEnS2Star", 1, &SGScoeffNLuNormedEnS2Star);
YT_SET_USERPARAM_NONINTEGER("SGScoeffNLb", 1, &SGScoeffNLb);
YT_SET_USERPARAM_NONINTEGER("SGScoeffSSu", 1, &SGScoeffSSu);
YT_SET_USERPARAM_NONINTEGER("SGScoeffSSb", 1, &SGScoeffSSb);
YT_SET_USERPARAM_NONINTEGER("SGScoeffSSemf", 1, &SGScoeffSSemf);
YT_SET_USERPARAM_INTEGER("MultiSpecies", 1, &MultiSpecies);
YT_SET_USERPARAM_INTEGER("NoMultiSpeciesButColors", 1, &NoMultiSpeciesButColors);
YT_SET_USERPARAM_INTEGER("ThreeBodyRate", 1, &ThreeBodyRate);
YT_SET_USERPARAM_INTEGER("H2FormationOnDust", 1, &H2FormationOnDust);
YT_SET_USERPARAM_INTEGER("MixSpeciesAndColors", 1, &MixSpeciesAndColors);
YT_SET_USERPARAM_INTEGER("GloverChemistryModel", 1, &GloverChemistryModel);
YT_SET_USERPARAM_INTEGER("MultiMetals", 1, &MultiMetals);
YT_SET_USERPARAM_INTEGER("CRModel", 1, &CRModel);
YT_SET_USERPARAM_INTEGER("CRDiffusion", 1, &CRDiffusion);
YT_SET_USERPARAM_NONINTEGER("CRFeedback", 1, &CRFeedback);
YT_SET_USERPARAM_INTEGER("CRHeating", 1, &CRHeating);
YT_SET_USERPARAM_INTEGER("CRStreaming", 1, &CRStreaming);
YT_SET_USERPARAM_NONINTEGER("CRStreamVelocityFactor", 1, &CRStreamVelocityFactor);
YT_SET_USERPARAM_NONINTEGER("CRStreamStabilityFactor", 1, &CRStreamStabilityFactor);
YT_SET_USERPARAM_NONINTEGER("CRkappa", 1, &CRkappa);
YT_SET_USERPARAM_NONINTEGER("CRCourantSafetyNumber", 1, &CRCourantSafetyNumber);
YT_SET_USERPARAM_NONINTEGER("CRdensFloor", 1, &CRdensFloor);
YT_SET_USERPARAM_NONINTEGER("CRmaxSoundSpeed", 1, &CRmaxSoundSpeed);
YT_SET_USERPARAM_NONINTEGER("CRgamma", 1, &CRgamma);
YT_SET_USERPARAM_NONINTEGER("CosmologySimulationUniformCR", 1, &CosmologySimulationUniformCR);
YT_SET_USERPARAM_INTEGER("ShockMethod", 1, &ShockMethod);
YT_SET_USERPARAM_NONINTEGER("ShockTemperatureFloor", 1, &ShockTemperatureFloor);
YT_SET_USERPARAM_INTEGER("StorePreShockFields", 1, &StorePreShockFields);
YT_SET_USERPARAM_INTEGER("FindShocksOnlyOnOutput", 1, &FindShocksOnlyOnOutput);
YT_SET_USERPARAM_INTEGER("RadiationFieldType", 1, &RadiationFieldType);
YT_SET_USERPARAM_INTEGER("AdjustUVBackground", 1, &AdjustUVBackground);
YT_SET_USERPARAM_INTEGER("AdjustUVBackgroundHighRedshift", 1, &AdjustUVBackgroundHighRedshift);
YT_SET_USERPARAM_NONINTEGER("SetUVBAmplitude", 1, &SetUVBAmplitude);
YT_SET_USERPARAM_NONINTEGER("SetHeIIHeatingScale", 1, &SetHeIIHeatingScale);
YT_SET_USERPARAM_INTEGER("RadiationFieldLevelRecompute", 1, &RadiationFieldLevelRecompute);
YT_SET_USERPARAM_INTEGER("RadiationXRaySecondaryIon", 1, &RadiationXRaySecondaryIon);
YT_SET_USERPARAM_INTEGER("RadiationXRayComptonHeating", 1, &RadiationXRayComptonHeating);
YT_SET_USERPARAM_INTEGER("TabulatedLWBackground", 1, &TabulatedLWBackground);
YT_SET_USERPARAM_NONINTEGER("RadiationFieldRedshift", 1, &RadiationFieldRedshift);
YT_SET_USERPARAM_INTEGER("PhotoelectricHeating", 1, &PhotoelectricHeating);
YT_SET_USERPARAM_NONINTEGER("PhotoelectricHeatingRate", 1, &PhotoelectricHeatingRate);
YT_SET_USERPARAM_INTEGER("OutputCoolingTime", 1, &OutputCoolingTime);
YT_SET_USERPARAM_INTEGER("OutputTemperature", 1, &OutputTemperature);
YT_SET_USERPARAM_INTEGER("OutputDustTemperature", 1, &OutputDustTemperature);
YT_SET_USERPARAM_INTEGER("OutputSmoothedDarkMatter", 1, &OutputSmoothedDarkMatter);
YT_SET_USERPARAM_INTEGER("SmoothedDarkMatterNeighbors", 1, &SmoothedDarkMatterNeighbors);
YT_SET_USERPARAM_INTEGER("OutputGriddedStarParticle", 1, &OutputGriddedStarParticle);
YT_SET_USERPARAM_NONINTEGER("ZEUSLinearArtificialViscosity", 1, &ZEUSLinearArtificialViscosity);
YT_SET_USERPARAM_NONINTEGER("ZEUSQuadraticArtificialViscosity", 1, &ZEUSQuadraticArtificialViscosity);
YT_SET_USERPARAM_INTEGER("UseMinimumPressureSupport", 1, &UseMinimumPressureSupport);
YT_SET_USERPARAM_NONINTEGER("MinimumPressureSupportParameter", 1, &MinimumPressureSupportParameter);
YT_SET_USERPARAM_INTEGER("StaticRefineRegionLevel", MAX_STATIC_REGIONS, StaticRefineRegionLevel);
if (RefineRegionFile)
    yt_set_UserParameterString("RefineRegionFile", RefineRegionFile);
YT_SET_USERPARAM_INTEGER("RefineRegionTimeType", 1, &RefineRegionTimeType);
YT_SET_USERPARAM_INTEGER("EvolveRefineRegionNtimes", 1, &EvolveRefineRegionNtimes);
YT_SET_USERPARAM_PNONINTEGER("EvolveRefineRegionTime", MAX_REFINE_REGIONS, EvolveRefineRegionTime);
if (MustRefineRegionFile)
    yt_set_UserParameterString("MustRefineRegionFile", MustRefineRegionFile);
YT_SET_USERPARAM_INTEGER("MustRefineRegionTimeType", 1, &MustRefineRegionTimeType);
YT_SET_USERPARAM_INTEGER("EvolveMustRefineRegionNtimes", 1, &EvolveMustRefineRegionNtimes);
YT_SET_USERPARAM_PNONINTEGER("EvolveMustRefineRegionTime", MAX_REFINE_REGIONS, EvolveMustRefineRegionTime);
YT_SET_USERPARAM_INTEGER("EvolveMustRefineRegionMinLevel", MAX_REFINE_REGIONS, EvolveMustRefineRegionMinLevel);
YT_SET_USERPARAM_INTEGER("UseCoolingRefineRegion", 1, &UseCoolingRefineRegion);
YT_SET_USERPARAM_INTEGER("EvolveCoolingRefineRegion", 1, &EvolveCoolingRefineRegion);
YT_SET_USERPARAM_PNONINTEGER("CoolingRefineRegionLeftEdge", MAX_DIMENSION, CoolingRefineRegionLeftEdge);
YT_SET_USERPARAM_PNONINTEGER("CoolingRefineRegionRightEdge", MAX_DIMENSION, CoolingRefineRegionRightEdge);
if (CoolingRefineRegionFile)
    yt_set_UserParameterString("CoolingRefineRegionFile", CoolingRefineRegionFile);
YT_SET_USERPARAM_INTEGER("CoolingRefineRegionTimeType", 1, &CoolingRefineRegionTimeType);
YT_SET_USERPARAM_INTEGER("EvolveCoolingRefineRegionNtimes", 1, &EvolveCoolingRefineRegionNtimes);
YT_SET_USERPARAM_PNONINTEGER("EvolveCoolingRefineRegionTime", MAX_REFINE_REGIONS, EvolveCoolingRefineRegionTime);
YT_SET_USERPARAM_INTEGER("MyProcessorNumber", 1, &MyProcessorNumber);
YT_SET_USERPARAM_INTEGER("NumberOfProcessors", 1, &NumberOfProcessors);
YT_SET_USERPARAM_NONINTEGER("CommunicationTime", 1, &CommunicationTime);
YT_SET_USERPARAM_INTEGER("ParallelRootGridIO", 1, &ParallelRootGridIO);
YT_SET_USERPARAM_INTEGER("ParallelParticleIO", 1, &ParallelParticleIO);
YT_SET_USERPARAM_INTEGER("Unigrid", 1, &Unigrid);
YT_SET_USERPARAM_INTEGER("CubeDumpEnabled", 1, &CubeDumpEnabled);
YT_SET_USERPARAM_INTEGER("PartitionNestedGrids", 1, &PartitionNestedGrids);
YT_SET_USERPARAM_INTEGER("StaticPartitionNestedGrids", 1, &StaticPartitionNestedGrids);
YT_SET_USERPARAM_INTEGER("ExtractFieldsOnly", 1, &ExtractFieldsOnly);
YT_SET_USERPARAM_INTEGER("First_Pass", 1, &First_Pass);
YT_SET_USERPARAM_INTEGER("UnigridTranspose", 1, &UnigridTranspose);
YT_SET_USERPARAM_INTEGER("NumberOfRootGridTilesPerDimensionPerProcessor", 1, &NumberOfRootGridTilesPerDimensionPerProcessor);
YT_SET_USERPARAM_INTEGER("CosmologySimulationNumberOfInitialGrids", 1, &CosmologySimulationNumberOfInitialGrids);
YT_SET_USERPARAM_INTEGER("UserDefinedRootGridLayout", 3, UserDefinedRootGridLayout);
YT_SET_USERPARAM_INTEGER("OutputOnDensity", 1, &OutputOnDensity);
YT_SET_USERPARAM_NONINTEGER("StartDensityOutputs", 1, &StartDensityOutputs);
YT_SET_USERPARAM_NONINTEGER("CurrentDensityOutput", 1, &CurrentDensityOutput);
YT_SET_USERPARAM_NONINTEGER("CurrentMaximumDensity", 1, &CurrentMaximumDensity);
YT_SET_USERPARAM_NONINTEGER("IncrementDensityOutput", 1, &IncrementDensityOutput);
YT_SET_USERPARAM_NONINTEGER("StopFirstTimeAtDensity", 1, &StopFirstTimeAtDensity);
YT_SET_USERPARAM_NONINTEGER("StopFirstTimeAtMetalEnrichedDensity", 1, &StopFirstTimeAtMetalEnrichedDensity);
YT_SET_USERPARAM_NONINTEGER("CurrentMaximumMetalEnrichedDensity", 1, &CurrentMaximumMetalEnrichedDensity);
YT_SET_USERPARAM_NONINTEGER("EnrichedMetalFraction", 1, &EnrichedMetalFraction);
YT_SET_USERPARAM_INTEGER("PythonTopGridSkip", 1, &PythonTopGridSkip);
YT_SET_USERPARAM_INTEGER("PythonSubcycleSkip", 1, &PythonSubcycleSkip);
YT_SET_USERPARAM_INTEGER("PythonReloadScript", 1, &PythonReloadScript);
YT_SET_USERPARAM_INTEGER("InlineHaloFinder", 1, &InlineHaloFinder);
YT_SET_USERPARAM_INTEGER("HaloFinderSubfind", 1, &HaloFinderSubfind);
YT_SET_USERPARAM_INTEGER("HaloFinderOutputParticleList", 1, &HaloFinderOutputParticleList);
YT_SET_USERPARAM_INTEGER("HaloFinderMinimumSize", 1, &HaloFinderMinimumSize);
YT_SET_USERPARAM_INTEGER("HaloFinderCycleSkip", 1, &HaloFinderCycleSkip);
YT_SET_USERPARAM_INTEGER("HaloFinderRunAfterOutput", 1, &HaloFinderRunAfterOutput);
YT_SET_USERPARAM_NONINTEGER("HaloFinderLinkingLength", 1, &HaloFinderLinkingLength);
YT_SET_USERPARAM_NONINTEGER("HaloFinderTimestep", 1, &HaloFinderTimestep);
YT_SET_USERPARAM_PNONINTEGER("HaloFinderLastTime", 1, &HaloFinderLastTime);
YT_SET_USERPARAM_NONINTEGER("MinimumSlopeForRefinement", MAX_FLAGGING_METHODS, MinimumSlopeForRefinement);
YT_SET_USERPARAM_INTEGER("SlopeFlaggingFields", MAX_FLAGGING_METHODS, SlopeFlaggingFields);
YT_SET_USERPARAM_NONINTEGER("MinimumOverDensityForRefinement", MAX_FLAGGING_METHODS, MinimumOverDensityForRefinement);
YT_SET_USERPARAM_NONINTEGER("MinimumMassForRefinement", MAX_FLAGGING_METHODS, MinimumMassForRefinement);
YT_SET_USERPARAM_NONINTEGER("MinimumMassForRefinementLevelExponent", MAX_FLAGGING_METHODS, MinimumMassForRefinementLevelExponent);
YT_SET_USERPARAM_NONINTEGER("DepositPositionsParticleSmoothRadius", 1, &DepositPositionsParticleSmoothRadius);
YT_SET_USERPARAM_NONINTEGER("MinimumPressureJumpForRefinement", 1, &MinimumPressureJumpForRefinement);
YT_SET_USERPARAM_NONINTEGER("MinimumEnergyRatioForRefinement", 1, &MinimumEnergyRatioForRefinement);
YT_SET_USERPARAM_NONINTEGER("RefineByJeansLengthSafetyFactor", 1, &RefineByJeansLengthSafetyFactor);
YT_SET_USERPARAM_NONINTEGER("JeansRefinementColdTemperature", 1, &JeansRefinementColdTemperature);
YT_SET_USERPARAM_INTEGER("MustRefineParticlesRefineToLevel", 1, &MustRefineParticlesRefineToLevel);
YT_SET_USERPARAM_INTEGER("MustRefineParticlesRefineToLevelAutoAdjust", 1, &MustRefineParticlesRefineToLevelAutoAdjust);
YT_SET_USERPARAM_NONINTEGER("MustRefineParticlesMinimumMass", 1, &MustRefineParticlesMinimumMass);
YT_SET_USERPARAM_PNONINTEGER("MustRefineParticlesLeftEdge", MAX_DIMENSION, MustRefineParticlesLeftEdge);
YT_SET_USERPARAM_PNONINTEGER("MustRefineParticlesRightEdge", MAX_DIMENSION, MustRefineParticlesRightEdge);
YT_SET_USERPARAM_INTEGER("MustRefineParticlesCreateParticles", 1, &MustRefineParticlesCreateParticles);
YT_SET_USERPARAM_NONINTEGER("MinimumShearForRefinement", 1, &MinimumShearForRefinement);
YT_SET_USERPARAM_INTEGER("OldShearMethod", 1, &OldShearMethod);
YT_SET_USERPARAM_NONINTEGER("RefineByResistiveLengthSafetyFactor", 1, &RefineByResistiveLengthSafetyFactor);
YT_SET_USERPARAM_NONINTEGER("ShockwaveRefinementMinMach", 1, &ShockwaveRefinementMinMach);
YT_SET_USERPARAM_NONINTEGER("ShockwaveRefinementMinVelocity", 1, &ShockwaveRefinementMinVelocity);
YT_SET_USERPARAM_INTEGER("ShockwaveRefinementMaxLevel", 1, &ShockwaveRefinementMaxLevel);
YT_SET_USERPARAM_NONINTEGER("MinimumSecondDerivativeForRefinement", MAX_FLAGGING_METHODS, MinimumSecondDerivativeForRefinement);
YT_SET_USERPARAM_INTEGER("SecondDerivativeFlaggingFields", MAX_FLAGGING_METHODS, SecondDerivativeFlaggingFields);
YT_SET_USERPARAM_NONINTEGER("SecondDerivativeEpsilon", 1, &SecondDerivativeEpsilon);
YT_SET_USERPARAM_INTEGER("NohProblemFullBox", 1, &NohProblemFullBox);
YT_SET_USERPARAM_INTEGER("ComovingCoordinates", 1, &ComovingCoordinates);
YT_SET_USERPARAM_INTEGER("StarParticleCreation", 1, &StarParticleCreation);
YT_SET_USERPARAM_INTEGER("StarParticleFeedback", 1, &StarParticleFeedback);
YT_SET_USERPARAM_INTEGER("StarParticleRadiativeFeedback", 1, &StarParticleRadiativeFeedback);
YT_SET_USERPARAM_INTEGER("NumberOfParticleAttributes", 1, &NumberOfParticleAttributes);
YT_SET_USERPARAM_INTEGER("AddParticleAttributes", 1, &AddParticleAttributes);
YT_SET_USERPARAM_INTEGER("BigStarFormation", 1, &BigStarFormation);
YT_SET_USERPARAM_INTEGER("BigStarFormationDone", 1, &BigStarFormationDone);
YT_SET_USERPARAM_NONINTEGER("BigStarSeparation", 1, &BigStarSeparation);
yt_set_UserParameterDouble("SimpleQ", 1, &SimpleQ);
YT_SET_USERPARAM_NONINTEGER("SimpleRampTime", 1, &SimpleRampTime);
YT_SET_USERPARAM_INTEGER("StarFormationOncePerRootGridTimeStep", 1, &StarFormationOncePerRootGridTimeStep);
YT_SET_USERPARAM_INTEGER("TimeActionType", MAX_TIME_ACTIONS, TimeActionType);
YT_SET_USERPARAM_PNONINTEGER("TimeActionTime", MAX_TIME_ACTIONS, TimeActionTime);
YT_SET_USERPARAM_PNONINTEGER("TimeActionRedshift", MAX_TIME_ACTIONS, TimeActionRedshift);
YT_SET_USERPARAM_NONINTEGER("TimeActionParameter", MAX_TIME_ACTIONS, TimeActionParameter);
for (i = 0; i < MAX_CUBE_DUMPS; i++){
    snprintf(tempname, 255, "CubeDumps_%d", i);
    if (!CubeDumps[i]) continue;
    yt_set_UserParameterString(tempname, CubeDumps[i]);
}
YT_SET_USERPARAM_INTEGER("TracerParticleOn", 1, &TracerParticleOn);
YT_SET_USERPARAM_INTEGER("TracerParticleOutputVelocity", 1, &TracerParticleOutputVelocity);
YT_SET_USERPARAM_PNONINTEGER("TracerParticleCreationSpacing", 1, &TracerParticleCreationSpacing);
YT_SET_USERPARAM_PNONINTEGER("TracerParticleCreationLeftEdge", MAX_DIMENSION, TracerParticleCreationLeftEdge);
YT_SET_USERPARAM_PNONINTEGER("TracerParticleCreationRightEdge", MAX_DIMENSION, TracerParticleCreationRightEdge);
YT_SET_USERPARAM_INTEGER("ParticleTypeInFile", 1, &ParticleTypeInFile);
YT_SET_USERPARAM_INTEGER("OutputParticleTypeGrouping", 1, &OutputParticleTypeGrouping);
YT_SET_USERPARAM_INTEGER("ExternalBoundaryIO", 1, &ExternalBoundaryIO);
YT_SET_USERPARAM_INTEGER("ExternalBoundaryTypeIO", 1, &ExternalBoundaryTypeIO);
YT_SET_USERPARAM_INTEGER("ExternalBoundaryValueIO", 1, &ExternalBoundaryValueIO);
YT_SET_USERPARAM_INTEGER("ExternalBoundaryField", 1, &ExternalBoundaryField);
YT_SET_USERPARAM_INTEGER("SimpleConstantBoundary", 1, &SimpleConstantBoundary);
YT_SET_USERPARAM_INTEGER("StoreDomainBoundaryMassFlux", 1, &StoreDomainBoundaryMassFlux);
YT_SET_USERPARAM_INTEGER("BoundaryMassFluxFieldNumbers", MAX_NUMBER_OF_BARYON_FIELDS, BoundaryMassFluxFieldNumbers);
YT_SET_USERPARAM_NONINTEGER("BoundaryMassFluxContainer", MAX_NUMBER_OF_BARYON_FIELDS, BoundaryMassFluxContainer);
if (BoundaryMassFluxFilename)
    yt_set_UserParameterString("BoundaryMassFluxFilename", BoundaryMassFluxFilename);
YT_SET_USERPARAM_INTEGER("TaskMap", MAX_NUMBER_OF_TASKS, TaskMap);
yt_set_UserParameterDouble("NodeMem", MAX_NUMBER_OF_NODES, NodeMem);
YT_SET_USERPARAM_INTEGER("NodeMap", MAX_NUMBER_OF_NODES, NodeMap);
YT_SET_USERPARAM_INTEGER("LoadGridDataAtStart", 1, &LoadGridDataAtStart);
if (MetaDataIdentifier)
    yt_set_UserParameterString("MetaDataIdentifier", MetaDataIdentifier);
YT_SET_USERPARAM_INTEGER("traceMPI", 1, &traceMPI);
YT_SET_USERPARAM_INTEGER("MovieDataField", MAX_MOVIE_FIELDS, MovieDataField);
YT_SET_USERPARAM_INTEGER("MovieSkipTimestep", 1, &MovieSkipTimestep);
YT_SET_USERPARAM_INTEGER("Movie3DVolumes", 1, &Movie3DVolumes);
YT_SET_USERPARAM_INTEGER("MovieVertexCentered", 1, &MovieVertexCentered);
if (NewMovieName)
    yt_set_UserParameterString("NewMovieName", NewMovieName);
YT_SET_USERPARAM_INTEGER("NewMovieDumpNumber", 1, &NewMovieDumpNumber);
YT_SET_USERPARAM_INTEGER("NewMovieParticleOn", 1, &NewMovieParticleOn);
YT_SET_USERPARAM_INTEGER("UseHydro", 1, &UseHydro);
YT_SET_USERPARAM_INTEGER("Coordinate", 1, &Coordinate);
YT_SET_USERPARAM_INTEGER("NSpecies", 1, &NSpecies);
YT_SET_USERPARAM_INTEGER("NColor", 1, &NColor);
YT_SET_USERPARAM_NONINTEGER("Theta_Limiter", 1, &Theta_Limiter);
YT_SET_USERPARAM_INTEGER("UsePhysicalUnit", 1, &UsePhysicalUnit);
YT_SET_USERPARAM_INTEGER("iden", 1, &iden);
YT_SET_USERPARAM_INTEGER("ietot", 1, &ietot);
YT_SET_USERPARAM_INTEGER("ivx", 1, &ivx);
YT_SET_USERPARAM_INTEGER("ivy", 1, &ivy);
YT_SET_USERPARAM_INTEGER("ivz", 1, &ivz);
YT_SET_USERPARAM_INTEGER("iBx", 1, &iBx);
YT_SET_USERPARAM_INTEGER("iBy", 1, &iBy);
YT_SET_USERPARAM_INTEGER("iBz", 1, &iBz);
YT_SET_USERPARAM_INTEGER("iPhi", 1, &iPhi);
YT_SET_USERPARAM_INTEGER("ieint", 1, &ieint);
YT_SET_USERPARAM_INTEGER("iD", 1, &iD);
YT_SET_USERPARAM_INTEGER("iEtot", 1, &iEtot);
YT_SET_USERPARAM_INTEGER("iS1", 1, &iS1);
YT_SET_USERPARAM_INTEGER("iS2", 1, &iS2);
YT_SET_USERPARAM_INTEGER("iS3", 1, &iS3);
YT_SET_USERPARAM_INTEGER("iEint", 1, &iEint);
YT_SET_USERPARAM_INTEGER("iCR", 1, &iCR);
YT_SET_USERPARAM_NONINTEGER("SmallRho", 1, &SmallRho);
YT_SET_USERPARAM_NONINTEGER("SmallP", 1, &SmallP);
YT_SET_USERPARAM_NONINTEGER("SmallEint", 1, &SmallEint);
YT_SET_USERPARAM_NONINTEGER("SmallT", 1, &SmallT);
YT_SET_USERPARAM_NONINTEGER("MaximumAlvenSpeed", 1, &MaximumAlvenSpeed);
YT_SET_USERPARAM_INTEGER("NEQ_HYDRO", 1, &NEQ_HYDRO);
YT_SET_USERPARAM_INTEGER("NEQ_MHD", 1, &NEQ_MHD);
YT_SET_USERPARAM_INTEGER("ReconstructionMethod", 1, &ReconstructionMethod);
YT_SET_USERPARAM_INTEGER("PositiveReconstruction", 1, &PositiveReconstruction);
YT_SET_USERPARAM_INTEGER("RiemannSolverFallback", 1, &RiemannSolverFallback);
YT_SET_USERPARAM_INTEGER("RiemannSolver", 1, &RiemannSolver);
YT_SET_USERPARAM_INTEGER("ConservativeReconstruction", 1, &ConservativeReconstruction);
YT_SET_USERPARAM_INTEGER("EOSType", 1, &EOSType);
YT_SET_USERPARAM_NONINTEGER("EOSSoundSpeed", 1, &EOSSoundSpeed);
YT_SET_USERPARAM_NONINTEGER("EOSCriticalDensity", 1, &EOSCriticalDensity);
YT_SET_USERPARAM_NONINTEGER("EOSGamma", 1, &EOSGamma);
YT_SET_USERPARAM_NONINTEGER("C_h", 1, &C_h);
YT_SET_USERPARAM_NONINTEGER("C_p", 1, &C_p);
YT_SET_USERPARAM_NONINTEGER("DivBDampingLength", 1, &DivBDampingLength);
YT_SET_USERPARAM_INTEGER("UseConstantAcceleration", 1, &UseConstantAcceleration);
YT_SET_USERPARAM_NONINTEGER("ConstantAcceleration", 3, ConstantAcceleration);
YT_SET_USERPARAM_NONINTEGER("Mu", 1, &Mu);
YT_SET_USERPARAM_INTEGER("ExternalGravity", 1, &ExternalGravity);
YT_SET_USERPARAM_NONINTEGER("StringKick", 1, &StringKick);
YT_SET_USERPARAM_INTEGER("StringKickDimension", 1, &StringKickDimension);
YT_SET_USERPARAM_INTEGER("UseFloor", 1, &UseFloor);
YT_SET_USERPARAM_INTEGER("UseViscosity", 1, &UseViscosity);
YT_SET_USERPARAM_NONINTEGER("ViscosityCoefficient", 1, &ViscosityCoefficient);
YT_SET_USERPARAM_INTEGER("UseAmbipolarDiffusion", 1, &UseAmbipolarDiffusion);
YT_SET_USERPARAM_INTEGER("UseResistivity", 1, &UseResistivity);
yt_set_UserParameterDouble("HaloMass", 1, &HaloMass);
YT_SET_USERPARAM_NONINTEGER("HaloConcentration", 1, &HaloConcentration);
YT_SET_USERPARAM_NONINTEGER("HaloRedshift", 1, &HaloRedshift);
yt_set_UserParameterDouble("HaloCentralDensity", 1, &HaloCentralDensity);
yt_set_UserParameterDouble("HaloVirialRadius", 1, &HaloVirialRadius);
YT_SET_USERPARAM_NONINTEGER("ExternalGravityConstant", 1, &ExternalGravityConstant);
YT_SET_USERPARAM_NONINTEGER("ExternalGravityDensity", 1, &ExternalGravityDensity);
YT_SET_USERPARAM_PNONINTEGER("ExternalGravityPosition", MAX_DIMENSION, ExternalGravityPosition);
yt_set_UserParameterDouble("ExternalGravityRadius", 1, &ExternalGravityRadius);
YT_SET_USERPARAM_PNONINTEGER("ExternalGravityOrientation", MAX_DIMENSION, ExternalGravityOrientation);
YT_SET_USERPARAM_INTEGER("UsePoissonDivergenceCleaning", 1, &UsePoissonDivergenceCleaning);
YT_SET_USERPARAM_INTEGER("PoissonDivergenceCleaningBoundaryBuffer", 1, &PoissonDivergenceCleaningBoundaryBuffer);
YT_SET_USERPARAM_NONINTEGER("PoissonDivergenceCleaningThreshold", 1, &PoissonDivergenceCleaningThreshold);
YT_SET_USERPARAM_NONINTEGER("PoissonApproximationThreshold", 1, &PoissonApproximationThreshold);
YT_SET_USERPARAM_INTEGER("PoissonBoundaryType", 1, &PoissonBoundaryType);
YT_SET_USERPARAM_INTEGER("ShiningParticleID", 1, &ShiningParticleID);
YT_SET_USERPARAM_NONINTEGER("SinkMergeDistance", 1, &SinkMergeDistance);
YT_SET_USERPARAM_NONINTEGER("SinkMergeMass", 1, &SinkMergeMass);
YT_SET_USERPARAM_NONINTEGER("TotalSinkMass", 1, &TotalSinkMass);
YT_SET_USERPARAM_INTEGER("StellarWindFeedback", 1, &StellarWindFeedback);
YT_SET_USERPARAM_NONINTEGER("StellarWindTurnOnMass", 1, &StellarWindTurnOnMass);
YT_SET_USERPARAM_NONINTEGER("MSStellarWindTurnOnMass", 1, &MSStellarWindTurnOnMass);
YT_SET_USERPARAM_INTEGER("NBodyDirectSummation", 1, &NBodyDirectSummation);
YT_SET_USERPARAM_INTEGER("UseDrivingField", 1, &UseDrivingField);
YT_SET_USERPARAM_NONINTEGER("DrivingEfficiency", 1, &DrivingEfficiency);
YT_SET_USERPARAM_INTEGER("UseCUDA", 1, &UseCUDA);
YT_SET_USERPARAM_INTEGER("ran1_init", 1, &ran1_init);
YT_SET_USERPARAM_INTEGER("rand_init", 1, &rand_init);
YT_SET_USERPARAM_INTEGER("NumberOfPythonCalls", 1, &NumberOfPythonCalls);
YT_SET_USERPARAM_INTEGER("NumberOfPythonTopGridCalls", 1, &NumberOfPythonTopGridCalls);
YT_SET_USERPARAM_INTEGER("NumberOfPythonSubcycleCalls", 1, &NumberOfPythonSubcycleCalls);
YT_SET_USERPARAM_INTEGER("NumberOfLibytCalls", 1, &NumberOfLibytCalls);
YT_SET_USERPARAM_INTEGER("NumberOfLibytTopGridCalls", 1, &NumberOfLibytTopGridCalls);
YT_SET_USERPARAM_INTEGER("NumberOfLibytSubcycleCalls", 1, &NumberOfLibytSubcycleCalls);
YT_SET_USERPARAM_INTEGER("MetalCooling", 1, &MetalCooling);
if (MetalCoolingTable)
    yt_set_UserParameterString("MetalCoolingTable", MetalCoolingTable);
YT_SET_USERPARAM_INTEGER("CIECooling", 1, &CIECooling);
YT_SET_USERPARAM_INTEGER("H2OpticalDepthApproximation", 1, &H2OpticalDepthApproximation);
YT_SET_USERPARAM_INTEGER("RadiativeTransfer", 1, &RadiativeTransfer);
YT_SET_USERPARAM_INTEGER("RadiativeTransferHydrogenOnly", 1, &RadiativeTransferHydrogenOnly);
YT_SET_USERPARAM_PNONINTEGER("PhotonTime", 1, &PhotonTime);
YT_SET_USERPARAM_NONINTEGER("dtPhoton", 1, &dtPhoton);
yt_set_UserParameterDouble("EscapedPhotonCount", 4, EscapedPhotonCount);
yt_set_UserParameterDouble("TotalEscapedPhotonCount", 4, TotalEscapedPhotonCount);
if (PhotonEscapeFilename)
    yt_set_UserParameterString("PhotonEscapeFilename", PhotonEscapeFilename);
YT_SET_USERPARAM_INTEGER("FieldsToInterpolate", MAX_NUMBER_OF_BARYON_FIELDS, FieldsToInterpolate);
YT_SET_USERPARAM_INTEGER("LevelCycleCount", MAX_DEPTH_OF_HIERARCHY, LevelCycleCount);
YT_SET_USERPARAM_INTEGER("LevelSubCycleCount", MAX_DEPTH_OF_HIERARCHY, LevelSubCycleCount);
YT_SET_USERPARAM_NONINTEGER("dtRebuildHierarchy", MAX_DEPTH_OF_HIERARCHY, dtRebuildHierarchy);
YT_SET_USERPARAM_NONINTEGER("TimeSinceRebuildHierarchy", MAX_DEPTH_OF_HIERARCHY, TimeSinceRebuildHierarchy);
YT_SET_USERPARAM_NONINTEGER("dtThisLevelSoFar", MAX_DEPTH_OF_HIERARCHY, dtThisLevelSoFar);
YT_SET_USERPARAM_NONINTEGER("dtThisLevel", MAX_DEPTH_OF_HIERARCHY, dtThisLevel);
YT_SET_USERPARAM_INTEGER("RebuildHierarchyCycleSkip", MAX_DEPTH_OF_HIERARCHY, RebuildHierarchyCycleSkip);
YT_SET_USERPARAM_INTEGER("ConductionDynamicRebuildHierarchy", 1, &ConductionDynamicRebuildHierarchy);
YT_SET_USERPARAM_INTEGER("ConductionDynamicRebuildMinLevel", 1, &ConductionDynamicRebuildMinLevel);
YT_SET_USERPARAM_INTEGER("RadiativeTransferCoupledRateSolver", 1, &RadiativeTransferCoupledRateSolver);
YT_SET_USERPARAM_INTEGER("RadiativeTransferFLD", 1, &RadiativeTransferFLD);
YT_SET_USERPARAM_INTEGER("ImplicitProblem", 1, &ImplicitProblem);
YT_SET_USERPARAM_INTEGER("StarMakerEmissivityField", 1, &StarMakerEmissivityField);
YT_SET_USERPARAM_NONINTEGER("uv_param", 1, &uv_param);
YT_SET_USERPARAM_NONINTEGER("AngularVelocity", 1, &AngularVelocity);
YT_SET_USERPARAM_NONINTEGER("VelocityGradient", 1, &VelocityGradient);
YT_SET_USERPARAM_INTEGER("ShearingBoundaryDirection", 1, &ShearingBoundaryDirection);
YT_SET_USERPARAM_INTEGER("ShearingVelocityDirection", 1, &ShearingVelocityDirection);
YT_SET_USERPARAM_INTEGER("ShearingOtherDirection", 1, &ShearingOtherDirection);
YT_SET_USERPARAM_INTEGER("UseMHD", 1, &UseMHD);
YT_SET_USERPARAM_INTEGER("MaxVelocityIndex", 1, &MaxVelocityIndex);
YT_SET_USERPARAM_PNONINTEGER("TopGridDx", MAX_DIMENSION, TopGridDx);
YT_SET_USERPARAM_INTEGER("ShearingBoxProblemType", 1, &ShearingBoxProblemType);
YT_SET_USERPARAM_NONINTEGER("IsothermalSoundSpeed", 1, &IsothermalSoundSpeed);
YT_SET_USERPARAM_INTEGER("MoveParticlesBetweenSiblings", 1, &MoveParticlesBetweenSiblings);
YT_SET_USERPARAM_INTEGER("ParticleSplitterIterations", 1, &ParticleSplitterIterations);
YT_SET_USERPARAM_NONINTEGER("ParticleSplitterChildrenParticleSeparation", 1, &ParticleSplitterChildrenParticleSeparation);
YT_SET_USERPARAM_INTEGER("ParticleSplitterRandomSeed", 1, &ParticleSplitterRandomSeed);
YT_SET_USERPARAM_INTEGER("ParticleSplitterMustRefine", 1, &ParticleSplitterMustRefine);
if (ParticleSplitterMustRefineIDFile)
    yt_set_UserParameterString("ParticleSplitterMustRefineIDFile", ParticleSplitterMustRefineIDFile);
YT_SET_USERPARAM_NONINTEGER("ParticleSplitterFraction", MAX_SPLIT_ITERATIONS, ParticleSplitterFraction);
YT_SET_USERPARAM_PNONINTEGER("ParticleSplitterCenter", MAX_DIMENSION, ParticleSplitterCenter);
YT_SET_USERPARAM_NONINTEGER("ParticleSplitterCenterRegion", MAX_SPLIT_ITERATIONS, ParticleSplitterCenterRegion);
YT_SET_USERPARAM_INTEGER("ResetMagneticField", 1, &ResetMagneticField);
YT_SET_USERPARAM_NONINTEGER("ResetMagneticFieldAmplitude", MAX_DIMENSION, ResetMagneticFieldAmplitude);
YT_SET_USERPARAM_INTEGER("MBHParticleIO", 1, &MBHParticleIO);
if (MBHParticleIOFilename)
    yt_set_UserParameterString("MBHParticleIOFilename", MBHParticleIOFilename);
if (MBHInsertLocationFilename)
    yt_set_UserParameterString("MBHInsertLocationFilename", MBHInsertLocationFilename);
YT_SET_USERPARAM_INTEGER("OutputWhenJetsHaveNotEjected", 1, &OutputWhenJetsHaveNotEjected);
if (RadiationSourcesFileName)
    yt_set_UserParameterString("RadiationSourcesFileName", RadiationSourcesFileName);
YT_SET_USERPARAM_INTEGER("NumberOfRadiationParticles", 1, &NumberOfRadiationParticles);
yt_set_UserParameterDouble("PhotonsPerSecond", 1, &PhotonsPerSecond);
YT_SET_USERPARAM_INTEGER("NumberOfEnergyBins", 1, &NumberOfEnergyBins);
YT_SET_USERPARAM_NONINTEGER("RadiationEnergyInBin", 255, RadiationEnergyInBin);
YT_SET_USERPARAM_NONINTEGER("RadiationBinSED", 255, RadiationBinSED);
YT_SET_USERPARAM_INTEGER("VelAnyl", 1, &VelAnyl);
YT_SET_USERPARAM_INTEGER("BAnyl", 1, &BAnyl);
YT_SET_USERPARAM_INTEGER("WriteExternalAccel", 1, &WriteExternalAccel);
YT_SET_USERPARAM_INTEGER("UseGasDrag", 1, &UseGasDrag);
YT_SET_USERPARAM_NONINTEGER("GasDragCoefficient", 1, &GasDragCoefficient);
YT_SET_USERPARAM_INTEGER("IsotropicConduction", 1, &IsotropicConduction);
YT_SET_USERPARAM_INTEGER("AnisotropicConduction", 1, &AnisotropicConduction);
YT_SET_USERPARAM_NONINTEGER("IsotropicConductionSpitzerFraction", 1, &IsotropicConductionSpitzerFraction);
YT_SET_USERPARAM_NONINTEGER("AnisotropicConductionSpitzerFraction", 1, &AnisotropicConductionSpitzerFraction);
YT_SET_USERPARAM_NONINTEGER("ConductionCourantSafetyNumber", 1, &ConductionCourantSafetyNumber);
YT_SET_USERPARAM_INTEGER("SpeedOfLightTimeStepLimit", 1, &SpeedOfLightTimeStepLimit);
YT_SET_USERPARAM_INTEGER("ClusterSMBHFeedback", 1, &ClusterSMBHFeedback);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHJetMdot", 1, &ClusterSMBHJetMdot);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHJetVelocity", 1, &ClusterSMBHJetVelocity);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHJetRadius", 1, &ClusterSMBHJetRadius);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHJetLaunchOffset", 1, &ClusterSMBHJetLaunchOffset);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHStartTime", 1, &ClusterSMBHStartTime);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHTramp", 1, &ClusterSMBHTramp);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHJetOpenAngleRadius", 1, &ClusterSMBHJetOpenAngleRadius);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHFastJetRadius", 1, &ClusterSMBHFastJetRadius);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHFastJetVelocity", 1, &ClusterSMBHFastJetVelocity);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHJetEdot", 1, &ClusterSMBHJetEdot);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHKineticFraction", 1, &ClusterSMBHKineticFraction);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHJetAngleTheta", 1, &ClusterSMBHJetAngleTheta);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHJetAnglePhi", 1, &ClusterSMBHJetAnglePhi);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHJetPrecessionPeriod", 1, &ClusterSMBHJetPrecessionPeriod);
YT_SET_USERPARAM_INTEGER("ClusterSMBHCalculateGasMass", 1, &ClusterSMBHCalculateGasMass);
YT_SET_USERPARAM_INTEGER("ClusterSMBHFeedbackSwitch", 1, &ClusterSMBHFeedbackSwitch);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHEnoughColdGas", 1, &ClusterSMBHEnoughColdGas);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHAccretionTime", 1, &ClusterSMBHAccretionTime);
YT_SET_USERPARAM_INTEGER("ClusterSMBHJetDim", 1, &ClusterSMBHJetDim);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHAccretionEpsilon", 1, &ClusterSMBHAccretionEpsilon);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHDiskRadius", 1, &ClusterSMBHDiskRadius);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHBCG", 1, &ClusterSMBHBCG);
YT_SET_USERPARAM_NONINTEGER("ClusterSMBHMass", 1, &ClusterSMBHMass);
YT_SET_USERPARAM_NONINTEGER("EllipticalGalaxyRe", 1, &EllipticalGalaxyRe);
YT_SET_USERPARAM_NONINTEGER("OldStarFeedbackAlpha", 1, &OldStarFeedbackAlpha);
YT_SET_USERPARAM_NONINTEGER("SNIaFeedbackEnergy", 1, &SNIaFeedbackEnergy);
YT_SET_USERPARAM_NONINTEGER("StellarWindRadius", 1, &StellarWindRadius);
YT_SET_USERPARAM_NONINTEGER("StellarWindDensity", 1, &StellarWindDensity);
YT_SET_USERPARAM_NONINTEGER("StellarWindSpeed", 1, &StellarWindSpeed);
YT_SET_USERPARAM_NONINTEGER("StellarWindTemperature", 1, &StellarWindTemperature);
YT_SET_USERPARAM_PNONINTEGER("StellarWindCenterPosition", 3, StellarWindCenterPosition);
YT_SET_USERPARAM_INTEGER("MHDCTSlopeLimiter", 1, &MHDCTSlopeLimiter);
YT_SET_USERPARAM_INTEGER("MHDCTDualEnergyMethod", 1, &MHDCTDualEnergyMethod);
YT_SET_USERPARAM_INTEGER("MHDCTPowellSource", 1, &MHDCTPowellSource);
YT_SET_USERPARAM_INTEGER("MHDCTUseSpecificEnergy", 1, &MHDCTUseSpecificEnergy);
YT_SET_USERPARAM_INTEGER("WriteBoundary", 1, &WriteBoundary);
YT_SET_USERPARAM_INTEGER("WriteAcceleration", 1, &WriteAcceleration);
YT_SET_USERPARAM_INTEGER("TracerParticlesAddToRestart", 1, &TracerParticlesAddToRestart);
YT_SET_USERPARAM_INTEGER("MHD_ProjectThisFace", 3, MHD_ProjectThisFace);
YT_SET_USERPARAM_NONINTEGER("CT_AthenaDissipation", 1, &CT_AthenaDissipation);
YT_SET_USERPARAM_INTEGER("MHD_WriteElectric", 1, &MHD_WriteElectric);
YT_SET_USERPARAM_NONINTEGER("tiny_pressure", 1, &tiny_pressure);
YT_SET_USERPARAM_INTEGER("MHD_CT_Method", 1, &MHD_CT_Method);
YT_SET_USERPARAM_INTEGER("MHD_ProjectB", 1, &MHD_ProjectB);
YT_SET_USERPARAM_INTEGER("MHD_ProjectE", 1, &MHD_ProjectE);
YT_SET_USERPARAM_INTEGER("UseMHDCT", 1, &UseMHDCT);
YT_SET_USERPARAM_INTEGER("EquationOfState", 1, &EquationOfState);
for (i = 0; i < 3; i++){
    snprintf(tempname, 255, "MHDLabel_%d", i);
    if (!MHDLabel[i]) continue;
    yt_set_UserParameterString(tempname, MHDLabel[i]);
}
for (i = 0; i < 3; i++){
    snprintf(tempname, 255, "MHDUnits_%d", i);
    if (!MHDUnits[i]) continue;
    yt_set_UserParameterString(tempname, MHDUnits[i]);
}
for (i = 0; i < 3; i++){
    snprintf(tempname, 255, "MHDeLabel_%d", i);
    if (!MHDeLabel[i]) continue;
    yt_set_UserParameterString(tempname, MHDeLabel[i]);
}
for (i = 0; i < 3; i++){
    snprintf(tempname, 255, "MHDeUnits_%d", i);
    if (!MHDeUnits[i]) continue;
    yt_set_UserParameterString(tempname, MHDeUnits[i]);
}
if (DatabaseLocation)
    yt_set_UserParameterString("DatabaseLocation", DatabaseLocation);
YT_SET_USERPARAM_INTEGER("ExtraOutputs", MAX_EXTRA_OUTPUTS, ExtraOutputs);
YT_SET_USERPARAM_INTEGER("CorrectParentBoundaryFlux", 1, &CorrectParentBoundaryFlux);
YT_SET_USERPARAM_INTEGER("EnabledActiveParticlesCount", 1, &EnabledActiveParticlesCount);
YT_SET_USERPARAM_NONINTEGER("ActiveParticleDensityThreshold", 1, &ActiveParticleDensityThreshold);
YT_SET_USERPARAM_INTEGER("SmartStarAccretion", 1, &SmartStarAccretion);
YT_SET_USERPARAM_INTEGER("SmartStarFeedback", 1, &SmartStarFeedback);
YT_SET_USERPARAM_INTEGER("SmartStarEddingtonCap", 1, &SmartStarEddingtonCap);
YT_SET_USERPARAM_INTEGER("SmartStarBHFeedback", 1, &SmartStarBHFeedback);
YT_SET_USERPARAM_INTEGER("SmartStarBHJetFeedback", 1, &SmartStarBHJetFeedback);
YT_SET_USERPARAM_INTEGER("SmartStarBHThermalFeedback", 1, &SmartStarBHThermalFeedback);
YT_SET_USERPARAM_INTEGER("SmartStarBHRadiativeFeedback", 1, &SmartStarBHRadiativeFeedback);
YT_SET_USERPARAM_INTEGER("SmartStarStellarRadiativeFeedback", 1, &SmartStarStellarRadiativeFeedback);
YT_SET_USERPARAM_NONINTEGER("SmartStarFeedbackEnergyCoupling", 1, &SmartStarFeedbackEnergyCoupling);
YT_SET_USERPARAM_NONINTEGER("SmartStarFeedbackJetsThresholdMass", 1, &SmartStarFeedbackJetsThresholdMass);
YT_SET_USERPARAM_NONINTEGER("SmartStarJetVelocity", 1, &SmartStarJetVelocity);
YT_SET_USERPARAM_NONINTEGER("SmartStarSpin", 1, &SmartStarSpin);
YT_SET_USERPARAM_INTEGER("SmartStarSuperEddingtonAdjustment", 1, &SmartStarSuperEddingtonAdjustment);
YT_SET_USERPARAM_NONINTEGER("SmartStarSMSLifetime", 1, &SmartStarSMSLifetime);
YT_SET_USERPARAM_INTEGER("TimingCycleSkip", 1, &TimingCycleSkip);
YT_SET_USERPARAM_INTEGER("GalaxySimulationRPSWind", 1, &GalaxySimulationRPSWind);
YT_SET_USERPARAM_NONINTEGER("GalaxySimulationRPSWindShockSpeed", 1, &GalaxySimulationRPSWindShockSpeed);
YT_SET_USERPARAM_NONINTEGER("GalaxySimulationRPSWindDelay", 1, &GalaxySimulationRPSWindDelay);
YT_SET_USERPARAM_NONINTEGER("GalaxySimulationRPSWindDensity", 1, &GalaxySimulationRPSWindDensity);
YT_SET_USERPARAM_NONINTEGER("GalaxySimulationRPSWindTotalEnergy", 1, &GalaxySimulationRPSWindTotalEnergy);
YT_SET_USERPARAM_NONINTEGER("GalaxySimulationRPSWindVelocity", MAX_DIMENSION, GalaxySimulationRPSWindVelocity);
YT_SET_USERPARAM_NONINTEGER("GalaxySimulationRPSWindPressure", 1, &GalaxySimulationRPSWindPressure);
YT_SET_USERPARAM_NONINTEGER("GalaxySimulationPreWindDensity", 1, &GalaxySimulationPreWindDensity);
YT_SET_USERPARAM_NONINTEGER("GalaxySimulationPreWindTotalEnergy", 1, &GalaxySimulationPreWindTotalEnergy);
YT_SET_USERPARAM_NONINTEGER("GalaxySimulationPreWindVelocity", MAX_DIMENSION, GalaxySimulationPreWindVelocity);
YT_SET_USERPARAM_INTEGER("UseMagneticSupernovaFeedback", 1, &UseMagneticSupernovaFeedback);
YT_SET_USERPARAM_NONINTEGER("MagneticSupernovaRadius", 1, &MagneticSupernovaRadius);
YT_SET_USERPARAM_NONINTEGER("MagneticSupernovaDuration", 1, &MagneticSupernovaDuration);
YT_SET_USERPARAM_NONINTEGER("MagneticSupernovaEnergy", 1, &MagneticSupernovaEnergy);

#undef YT_SET_USERPARAM_NONINTEGER
#undef YT_SET_USERPARAM_INTEGER
